﻿using Basefr.Attributes;
using Paas.Core.Const.Enums;
using Paas.Core.Meta.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Core.MetaTables.Entities
{
    /// <summary>
    /// 元数据表格字段
    /// </summary>
    [MainTable(nameof(MetaTableField))]
    public class MetaTableField : BaseEntity
    {
        /// <summary>
        /// 字段所属元数据表格Id
        /// </summary>
        public Guid? MetaTableId { get; set; }
        public virtual MetaTable MetaTable { get; set; }

        /// <summary>
        /// 字段所属元数据字段Id
        /// </summary>
        public Guid? MetaFieldId { get; set; }
        public virtual MetaField MetaField { get; set; }


        /// <summary>
        /// 元数据字段重命名，用于显示在表格上，默认中文
        /// </summary>
        public string ReLabel { get; set; }


    }

}
